<template>
  <div>
    <el-carousel trigger="click" height="500px">
      <el-carousel-item v-for="(item, index) in img" :key="index">
        <img :src="item.imgPath" alt="" />
      </el-carousel-item>
    </el-carousel>
  </div>
</template>
<script>
export default {
  props: ["img"],
};
</script>
<style scoped>
img{
  width: 100%;
}
</style>